  {extends 'base/site2.html'}
{block name="page_header"}{include file="common/header.html" inline}{/block}
{block name="page_nav"}{include file="common/slide-nav.html" inline}{/block}
{block name="page_styles"}
<link rel="stylesheet" type="text/css" href="/css/mediation/incoming/index.css" />
    <style>
        .mytest2 li {
          float: left;
          width: 25%;
          list-style: none;
          line-height: 34px;
          padding-left: 25px;
          font-size: 12px;
        }
        .panel  {
          padding-bottom: 0px;
        }
        .black-box{
          min-height: 50px;
        }
        .qudao2 {
          border: 1px solid lightgray;
          width: 100%;
          padding: 10px;
          box-shadow: 0px 1px 5px 2px #ccc;
          float: left;
        }
    </style>
{/block}
{block name="page_scripts"}

{*    <script type="text/javascript" src="/js/mediation/incoming/index.min.js" init="mediation/incoming/index"></script>*}

{/block}
{block name="page_section"}

<div class="sessionPage">
	<div class="page-header">
    <div class="left">
      <span class="line"></span>
      <strong class="tit">还款报表</strong>
    </div>
    </div>
    <div class="panel panel-headline" style="width: 95%; margin: 0 auto;">
        <div class="clearfix" style="overflow: hidden;font-size:13px;">
            <div class="qudao2" >
                <div class="qudao1" style="text-align:center">
                    <span class=""><h5>还款概括</h5> </span>
                    <hr>
                </div>
                <div class="row" id="data_rows">
                    <div class="black-box">
                        <ul class="mytest2">
                                    <li> <span class="nav-icon glyphicon glyphicon-yen" aria-hidden="true"></span> 还款总额：<span>{sprintf("%.2f",$countlist['returnMoney'])}</span>元</li>
                                    <li> <span class="nav-icon glyphicon glyphicon-book" aria-hidden="true"></span> 还款案件数：<span>{$countlist['caseNum']}</span>件</li>

                        </ul>
                        </br>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <form class="small-style" method="get" action="" class="clearfix" role="validform" enctype="multipart/form-data">
      <div class="form_row">
        <div class="form-group  col-lg-4 ui-select" style="margin-top:10px;display:flex;align-items:center;">
            <label for="exampleInputName2"  class="col-sm-2 control-label">调解部门:</label>
            <div class="col-sm-7">
                <select class="form-control selectpicker"   title="请选择" name="mediationOrganId" id="mediationOrganId">
                    {foreach from=$mediationOrgan item=info}
                        <option class="u144_input_option" {if $info.id==$query.mediationOrganId}selected="selected"{/if} value="{$info.id}">{$info.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>
          <div class="form-group  col-lg-4 ui-select" style="margin-top:10px;display:flex;align-items:center;">
              <label for="exampleInputName2"  class="col-sm-2 control-label">资产方:</label>
              <div class="col-sm-7">
                  <select class="form-control selectpicker"   title="请选择" name="assetsId" id="assetsId">
                      {foreach from=$assets  item=info}
                      <option class="u144_input_option" {if !empty($query.assetsId) &&  $info.id == $query.assetsId}selected="selected"{/if} value="{$info.id}">{$info.name}</option>
                      {/foreach}
                  </select>
              </div>
          </div>
        <div class="form-group col-lg-5 ui-select">
            <div class="col-sm-11 date-box-parent" style="display:flex;padding-right:10px;">
                <div class="col-sm-4">
                    <select class="form-control selectpicker" name="dataSelect" data-select="date"  title="请选择">
                        <option value="year" {if $smarty.get.dataSelect=='year'}selected{/if}>年报</option>
                        <option value="month" {if $smarty.get.dataSelect=='month'}selected{/if}>月报</option>
                        <option value="date" {if $smarty.get.dataSelect=='date'||!$smarty.get.dataSelect}selected{/if}>日报</option>
                        <option value="daterange" {if $smarty.get.dataSelect=='daterange'}selected{/if}>自定义</option>
                    </select>
                </div>
                &emsp;
                <div class="col-sm-8">

                    <input class="form-control" data-ele="date" data-type="{$smarty.get.dataSelect}" name="post_date" autocomplete="off"  value="{if !empty($query['post_date'])}{$query.post_date}{/if}" placeholder="请选择~">

                </div>
            </div>
        </div>
        <div class="form-group col-lg-4 ui-select">
            <div class="col-lg-5" style="float: right;">
                <button class="btn btn-primary col-lg-10 shousuoBtn"><span class="nav-icon glyphicon glyphicon-search" aria-hidden="true" style="margin-right: 2px"></span>查询</button>
            </div>
            <div class="col-lg-5">
                <a type="button" href="/returnedmoney/index" class="btn btn-default col-lg-10" ><span class="nav-icon glyphicon glyphicon-refresh" aria-hidden="true" style="margin-right: 2px"></span>重置</a>
            </div>
        </div>
      </div>
    </form >
    <div style="width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow-x: scroll;">
        <table class="table table-striped table-bordered table-hover text-nowrap">
        <thead>
            <tr>
                <th>序号</th>
                <th>调解部门</th>
                <th>调解员</th>
                <th>还款总额</th>
                <th>还款案件数量</th>
            </tr>
        </thead>
        <tbody>
        {if !empty($list)}
        	{foreach from=$list item=item key=key}
            <tr>
            	<td>{$key+1}</td>
                <td>{$mediationOrgan[$item.mediationOrganId]['name']}</td>

                <td>{$item.mediatorName}</td>
                <td>{$item.realRepayAmount}</td>
                <td>{count($item.caseIdArr)}</td>


            </tr>
            {/foreach}
        {/if}
        </tbody>
    </table>
    </div>
</div>

{*{include file="base/pagenav.html"  action="/callinreportforms/index" pagenum=$curPageNum inline}*}
<div role-side="left" class="ui-slide-box"></div>

{/block}
